package com.mttest.hotwords.service.impl;

import com.mttest.hotwords.dao.SearchLogMapper;
import com.mttest.hotwords.entity.SearchLog;
import com.mttest.hotwords.service.SearchService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author sunqy
 * @description
 * @create 2020-09-01 10:28
 */
@Service
public class SearchServiceImpl implements SearchService {

    @Resource
    private SearchLogMapper searchLogMapper;

    @Override
    public int addSearchLog(SearchLog searchLog) {
        return searchLogMapper.insert(searchLog);
    }
}
